package com.zwb.demo.easyweb.modules.config.controller;

import com.zwb.demo.easyweb.common.entity.response.ResultCode;

/**
 * 配置code
 *
 * @author zwb
 */
public enum ConfigCode implements ResultCode {
    NO_EXIST_JDBC_ID(false, 30000, "不存在的数据库字段id");

    /** 是否成功 */
    boolean success;

    /** 操作代码 */
    int code;

    /** 提示信息 */
    String message;

    ConfigCode(boolean success, int code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }

    @Override
    public boolean success() {
        return false;
    }

    @Override
    public int code() {
        return 0;
    }

    @Override
    public String message() {
        return null;
    }
}
